package org.example.video.pojo;

import lombok.Data;

import javax.persistence.*;
import java.util.UUID;

@Entity
@Table(name = "videos")
@Data
public class Video {

    @Id
    @Column(columnDefinition = "uuid")
    private UUID id;

    private String title;
    private String description;

    @Column(name = "bucket_raw")
    private String bucketRaw;

    @Column(name = "object_raw")
    private String objectRaw;

    @Column(name = "playlist_key")
    private String playlistKey;

    @Enumerated(EnumType.STRING)
    private Status status;

    public enum Status {
        PENDING, READY, ERROR
    }
}